module.exports = {
  devServer: {
    host: '0.0.0.0',
    port: 8080,
    allowedHosts: ['all'], 
    proxy: {
      '/api': {
        target: 'http://192.168.124.9:8888',
        changeOrigin: true,
        pathRewrite: { '^/api': ''  } // 保持路径
      }
    }
  }
}
